package com.axjy.service.impl;

import com.axjy.dao.PlanMapper;
import com.axjy.pojo.Plan;
import com.axjy.service.PlanService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * Created by 王松 on 2018/1/27.
 */
@Service("planService")
public class PlanServiceImpl implements PlanService {

    @Autowired(required = false)
    private PlanMapper planMapper;

    @Override
    public void addPlan(Plan plan) {
        planMapper.addPlan(plan);
    }

    @Override
    public List<Plan> list() {
        return planMapper.list();
    }
}
